package cn.swanit.common.base.enums;

import lombok.Getter;

@Getter
public enum IotCloudEnum {

    // 参考 https://www.kancloud.cn/onebase/ob/484204
    // 各个服务代码
    // ========== 系统级别 ==========
    OK("0", "ok"),
    SYS_2000001("2000001", "服务端发生异常，请联系管理员"),
    SYS_2000002("2000002", "解密失败"),
    CERT_1000001("1000001", "用户名或密码错误"),
    CERT_1000002("1000002", "验证码已失效"),
    CERT_1000003("1000003", "获取用户信息失败"),
    CERT_1000004("1000004", "验证码不正确");

    /**
     * 错误码
     */
    private final String code;
    /**
     * 错误提示
     */
    private final String message;

    IotCloudEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
